package com.example.datadashboard.dto;

import lombok.Data;
import java.util.List;
import java.util.Map;

@Data
public class DashboardDTO {
    private List<StatItem> stats;
    private ChartData charts;
    private List<Map<String, Object>> table;

    @Data
    public static class StatItem {
        private String title;
        private Number value;
        private String icon;
        private Number trend;
    }

    @Data
    public static class ChartData {
        private ChartItem line;
        private ChartItem bar;
    }

    @Data
    public static class ChartItem {
        private List<String> labels;
        private List<Dataset> datasets;
    }

    @Data
    public static class Dataset {
        private String name;
        private List<Number> values;
        private String color;
    }
}
